package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_see_his;
import cn.com.api.entity.ApiU_user_friend;
import cn.com.api.service.base.U_user_friendServiceBase;
import cn.com.util.PageInfo;

/**
 * 
 */
@Service
public interface ApiU_user_friendService extends U_user_friendServiceBase {

	// 新增对象后返回记录ID
	public int U_user_friendInsertion(ApiU_user_friend user_friend);

	// 检查加好友状态 0可加好友， 1申请中， 2已是好友， 3已拒绝， 4黑名单
	public Integer checkUserFriendState(String user_id, String friend_id);

	public ApiU_user_friend getUserFriendState(String user_id, String friend_id);

	// 获取好友关系状态
	public ApiU_user_friend getUserFriend(String user_id, String friend_id);

	// 根据Map查询
	public List<ApiU_user_friend> findU_user_friendByMap(Map param, PageInfo pageinfo);

	// 获取用户好友关系记录
	public ApiU_user_friend findUser_friend_Record(Map param);

	// 获取用户黑名单
	public List<ApiU_user_friend> findUser_friend_Black_List(Map param);

	public Map<String, Object> delFriendRelation(String user_id, String friend_id) throws Exception;

	public Map<String, Object> acceptfriendRequest(String user_id, String conn_id, String flag) throws Exception;

}
